//
//  UIColor+Extension.swift
//  sinaWeibo
//
//  Created by LiHong on 15/10/31.
//  Copyright © 2015年 LiHong. All rights reserved.
//

import UIKit

extension UIColor {
    class func randomColor() -> UIColor{
        return UIColor(red: randomValue(), green: randomValue(), blue: randomValue(), alpha: 1)
    }
    
    private class func randomValue() -> CGFloat {
        return CGFloat(arc4random_uniform(256))/255
    }
}